package com.ks.app.admin.hibernate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;


/**
 * KsVersion entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name="KS_VERSION")
public class KsVersion  implements java.io.Serializable {


    // Fields    
	private static final long serialVersionUID = 1L;
	

     private long id;               //主键
     private int vtype;             //版本类型  1：apk,2:站点导航条,3：广告墙,4 搜索导航条
     private String resolution;     //分辨率 
     private String filepath;       //下载地址
     private String version;        //当前版本号
     private int status;            //状态  2：上线，1：下线
     private String createtime;     //创建时间

    // Constructors

    /** default constructor */
    public KsVersion() {
    }

    
    /** full constructor */
    public KsVersion(int vtype, String resolution, String filepath, String version,int status,String createtime) {
        this.vtype = vtype;
        this.resolution = resolution;
        this.filepath = filepath;
        this.version = version;
        this.status = status;
        this.createtime=createtime;
    }

   
    // Property accessors
    @Id
    @GeneratedValue(strategy=GenerationType.SEQUENCE, generator="v_gen")
    @SequenceGenerator(name="v_gen",sequenceName="KS_VERSION_SEQ")
    @Column(name="ID", unique=true, nullable=false, precision=20, scale=0)
    public long getId() {
        return this.id;
    }
    
    public void setId(long id) {
        this.id = id;
    }
    
    @Column(name="VTYPE", precision=1, scale=0)
    public int getVtype() {
        return this.vtype;
    }
    
    public void setVtype(int vtype) {
        this.vtype = vtype;
    }
    
    @Column(name="RESOLUTION", length=10)
    public String getResolution() {
        return this.resolution;
    }
    
    public void setResolution(String resolution) {
        this.resolution = resolution;
    }
    
    @Column(name="FILEPATH", length=200)
    public String getFilepath() {
        return this.filepath;
    }
    
    public void setFilepath(String filepath) {
        this.filepath = filepath;
    }
    
    @Column(name="VERSION", length=20)
    public String getVersion() {
        return this.version;
    }
    
    public void setVersion(String version) {
        this.version = version;
    }
   
    @Column(name="STATUS", precision=1, scale=0)
    public int getStatus() {
        return this.status;
    }
    
    public void setStatus(int status) {
        this.status = status;
    }   

    @Column(name="CREATETIME", length=20)
    public String getCreatetime() {
        return this.createtime;
    }
    
    public void setCreatetime(String createtime) {
        this.createtime = createtime;
    }
    




}